home *** CD-ROM | disk | FTP | other *** search
- static const char rcs_id[] = "$Header: /disk1/schutte/src_tree/cppima/examples/RCS/dohist.cc,v 1.2 1994/06/07 15:20:16 schutte Exp schutte $";
- // cppima: a C++ image processing library
-
- // Copyright (C) 1992 Klamer Schutte
-
- // klamer@mi.el.utwente.nl
-
- // This library is free software; you can redistribute it and/or
- // modify it under the terms of the GNU Library General Public
- // License as published by the Free Software Foundation; either
- // version 2 of the License, or (at your option) any later version.
-
- // This library is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- // Library General Public License for more details.
-
- // You should have received a copy of the GNU Library General Public
- // License along with this library; if not, write to the Free
- // Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-
- // $Log: dohist.cc,v $
- // Revision 1.2 1994/06/07 15:20:16 schutte
- // Changed from VIFF to IMA.
- //
- // Revision 1.1 1992/09/25 15:35:30 klamer
- // Initial revision
- //
-
- #include <iostream.h>
- #include <cppima/charimaimage.h>
- #include <cppima/imageiter.h>
- #include <cppima/hist.h>
-
- int
- main(int argc,char *argv[])
- {
- CharImaImage image((argc > 1) ? argv[1] : "-");
- ImageIter iter(image);
- Hist hist;
-
- hist += iter;
-
- cout << hist;
-
- return 0;
- }
-
-
-